#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.57)
AC_INIT(graphpack, 1.0, moorthy@cs.rpi.edu)
AC_CONFIG_SRCDIR([src/alist.c])
AC_CONFIG_HEADER([config.h])
AM_INIT_AUTOMAKE

# Checks for programs.
AC_PROG_CC
AC_PROG_RANLIB

AC_ARG_WITH(www_lib,
	[ --with-www_lib=<path> prefix of WWW_LIB installation directory. e.g. /usr/local or /usr],
	[WWW_LIB_DIR=$with_www_lib],
	[WWW_LIB_DIR="/usr/local/include/w3c-libwww"]
)
AC_SUBST(WWW_LIB_DIR)
			

# Checks for libraries.

# Checks for header files.
AC_HEADER_STDC
AC_CHECK_HEADERS([stdlib.h string.h])

# Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_TYPE_SIZE_T

# Checks for library functions.
AC_FUNC_MALLOC
AC_FUNC_REALLOC
AC_CHECK_FUNCS([memset pow sqrt strcasecmp])

AC_CONFIG_FILES([Makefile
                 src/Makefile])
AC_OUTPUT
